<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理员管理</title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/index.css">
    <link rel="Shortcut Icon" href="cachet.ico">
    <script type="text/javascript" src="/asset/js/jquery-3.3.1.min.js"></script>
	<script src="/asset/layui/layui.js"></script>
    <script src="/asset/js/common.js"></script>
</head>
<body>
<div class="x-body">
			<div class="layui-row">
            		<form action="/staff/selected/staffs.htm" method="get" class="layui-form">
            		   <input type="hidden" name="organizationId" value="${query.organizationId}">
                    <div class="layui-inline" style="width:100px">
                            <select name="searchType" lay-filter="aihao">
                                <option value="">全部</option>
                                <option value="userLoginId" <#if query.searchType=='userLoginId'>selected</#if>>账户</option>
                                <option value="name" <#if query.searchType=='name'>selected</#if>>姓名</option>
                                <option value="mobile" <#if query.searchType=='mobile'>selected</#if>>手机号</option>
                            </select>
                    </div>
                    <div class="layui-inline">
                        <input type="text" name="searchKey" value="${query.searchKey}" lay-verify="title" autocomplete="off" placeholder="输入关键字搜索" class="layui-input">
                    </div>
                    <div class="layui-inline width80">
                        <div class="layui-input-inline ">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
                        </div>
                    </div>
                </form>
            </div>
            <table class="layui-table mytable" lay-even="" lay-skin="nob">
                
                <thead>
                <tr>
                	<th width="30px">选择</th>
                	<th>手机（账户）</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>部门</th>
                    <th>职位</th>
                    
                </tr>
                </thead>
                <tbody>
                	    <#list pm.datas as item>
                    <tr>
                    	<td><input type="radio" name="selectedId" value="${item.partyId}" lay-data="{'name':'${item.person.name}','portrait':'${item.person.portrait}','position':'${item.person.position}'}"></td>
                        <td>${item.userLoginId}</td>
                        <td>${item.person.name}</td>
                        <td>
                        	<@linkage type="GENDER" key=item.person.gender>
                    		<span class="${linkage.style}">${linkage.name}</span>
                    		</@linkage>
                        </td>
                        <td>${item.staff.department}</td>
                        <td>${item.staff.position}</td>
                        
                    </tr>
                    </#list>
                    
                </tbody>
            </table>
            <@p.page pm=pm></@p.page>
</div>
</body>
</html>